using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class HocVien_HocVien : System.Web.UI.MasterPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        
        if (Session["QuyenHan"].ToString() != "user" || Session["TenDangNhap"] == null || Session["TenDangNhap"] == "")
        {
            Response.Redirect("~/TrangChu.aspx");
            
        }
        //if (Session["TenDangNhap"] == null)// || Session["MatKhau"] != null)
        //{
        //    Response.Redirect("~/TrangChu.aspx");
        //}
        
    }
    protected void Menu_HocVien1_Load(object sender, EventArgs e)
    {
        //Session["TenDangNhap"] = null;
        //Session["MatKhau"] = null;
        //Session["QuyenHan"] = null;
        //Session.Clear();
        //Response.Redirect("~/TrangChu.aspx");
    }
}
